]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
networkAgent: Fix fallout from libnm port
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 9 May 2018 14:17:17 +0000 (16:17 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 9 May 2018 14:19:58 +0000 (16:19 +0200)
While the libnm-glib version of the function returns a GByteArray*
that gjs can directly cast to the required gutf8*, the libnm function
returns GBytes* from which we need to explicitly fetch the data.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/136

js/ui/components/networkAgent.js

index 9050b8a508966c26415cb3ccddd1e85d0a40ce8d..5bd648a73b6458f31fe03fcd9bc46d7848c4418e 100644 (file)
@@ -660,7 +660,7 @@ var NetworkAgent = new Lang.Class({
         switch (connectionType) {
         case '802-11-wireless':
             let wirelessSetting = connection.get_setting_wireless();
-            let ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid());
+            let ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid().get_data());
             title = _("Authentication required by wireless network");
             body = _("Passwords or encryption keys are required to access the wireless network “%s”.").format(ssid);
             break;